package edu.tgc.entity.file;

import java.util.UUID;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import edu.tgc.entity.system.SysUser;

@Inheritance(strategy = InheritanceType.JOINED)
@Entity
@Table(indexes = { @Index(columnList = "ext asc"), @Index(columnList = "size asc"), @Index(columnList = "protocol asc"), @Index(columnList = "host asc"), @Index(columnList = "createTime asc") })
@AttributeOverrides(value = @AttributeOverride(name = "id", column = @Column(length = 16)))
public class FileResource extends AbstractFileResource<SysUser, UUID> {

    private static final long serialVersionUID = -1219526157913798357L;

    public FileResource() {
    }

    public FileResource(UUID id) {
        this.id = id;
    }

}
